﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SkillBook._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Google Book Search</title>
    <style type="text/css">
        .style1
        {
            width: 603px;
        }
        #TextArea1
        {
            height: 325px;
            width: 592px;
        }
        #TxtArea
        {
            height: 310px;
            width: 578px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    <table style="width:100%;">
        <tr>
            <td class="style1">
                <asp:TextBox ID="TxtSearch" runat="server" Width="571px"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btSearch" runat="server" onclick="btSearch_Click" 
                    Text="Search" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Repeater ID="Rpt" runat="server">
                    <HeaderTemplate>        
                    </HeaderTemplate> 
                    <ItemTemplate>
                        <div class ="contentResults" style="border:#ecdfba 1px dotted;">                        
                            <div class ="book">
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# ((SkillBook.SearchBook.BookItem)Container.DataItem).Link%>' Text='<%# ((SkillBook.SearchBook.BookItem)Container.DataItem).Title %>'></asp:HyperLink>
                                <div class="Author">
                                    Author: <%# ((SkillBook.SearchBook.BookItem)Container.DataItem).Author%>  
                                </div>
                                <div class="ISBN">
                                    ISBN: <%# ((SkillBook.SearchBook.BookItem)Container.DataItem).ISBN%>  
                                </div>
                                <div class ="coverAndDescription">
                                    <asp:Image ID='Image1' runat="server" ImageUrl= '<%# ((SkillBook.SearchBook.BookItem)Container.DataItem).CoverLink%>' />
                                    <%# ((SkillBook.SearchBook.BookItem)Container.DataItem).Description%>   
                                </div>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </form>
</body>
</html>
